﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class TaiKhoanDTO
    {
        private int mataikhoan;
        public int MaTaiKhoan
        {
            get { return mataikhoan; }
            set { mataikhoan = value; }
        }

        private string tendangnhap;
        public string TenDangNhap
        {
            get { return tendangnhap; }
            set { tendangnhap = value; }
        }

        private string matkhau;
        public string MatKhau
        {
            get { return matkhau; }
            set { matkhau = value; }
        }

        private string hoten;

        public string HoTen
        {
            get { return hoten; }
            set { hoten = value; }
        }

        private string cmnd;
        public string Cmnd
        {
            get { return cmnd; }
            set { cmnd = value; }
        }

        private DateTime ngaysinh;
        public DateTime NgaySinh
        {
            get { return ngaysinh; }
            set { ngaysinh = value; }
        }
        private int gioitinh;
        public int GioiTinh
        {
            get { return gioitinh; }
            set { gioitinh = value; }
        }

        private string diachi;
        public string DiaChi
        {
            get { return diachi; }
            set { diachi = value; }
        }

        private string dienthoai;
        public string DienThoai
        {
            get { return dienthoai; }
            set { dienthoai = value; }
        }

        private int chucvu;
        public int ChucVu
        {
            get { return chucvu; }
            set { chucvu = value; }
        }
        public TaiKhoanDTO()
        {

        }

        public void DangNhap(string _tendangnhap, string _matkhau)
        {
            tendangnhap = _tendangnhap;
            matkhau = _matkhau;
        }
        public void LayThongTinTaiKhoan(int _mataikhoan)
        {
            mataikhoan = _mataikhoan;
        }
        public TaiKhoanDTO(string _tendangnhap, string _matkhau, string _hoten, string _cmnd, DateTime _ngaysinh, int _gioitinh, string _diachi, string _dienthoai, int _chucvu)
        {
            TenDangNhap = _tendangnhap;
            MatKhau = _matkhau;
            HoTen = _hoten;
            Cmnd = _cmnd;
            NgaySinh = _ngaysinh;
            GioiTinh = _gioitinh;
            DiaChi = _diachi;
            DienThoai = _dienthoai;
            ChucVu = _chucvu;
        }
    }
}
